<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script>
hana = {};
function Form(){
	
	
}
function Hash()
{
	this.length = 0;
	this.items = new Array();
	
	for (var i = 0; i < arguments.length; i += 2) {
		if (typeof(arguments[i + 1]) != 'undefined') {
			this.items[arguments[i]] = arguments[i + 1];
			this.length++;
		}
	}
   
	this.setItemArr = function(arr, isClear)
	{
		if(isClear)
			this.clear;
		
		for (var i = 0; i < arr.length; i += 2) {
			if (typeof(arr[i + 1]) != 'undefined') {
				this.items[arr[i]] = arr[i + 1];
				this.length++;
			}
		}
	};
	
	this.setItemJson = function(jsonObj, isClear)
	{
		if(isClear)
			this.clear;
		
		for (var word in jsonObj) {
			if(word != 'undefined'){
				this.items[word] = jsonObj[word];				
			}
		}
	};
	

	this.getItemJson = function() {
		var str = "{";
		for (var word in this.items) {
			if(word != 'undefined'){
				str += "\""+word+"\":\""+this.items[word]+"\",";				
			}
		}
		if(str.length > 1){
			str = str.substring(0,str.length-1);
		}
		str += "}";
		return str;
	};

	
	this.removeItem = function(in_key)
	{
		var tmp_previous;
		if (typeof(this.items[in_key]) != 'undefined') {
			this.length--;
			var tmp_previous = this.items[in_key];
			delete this.items[in_key];
		}
	   
		return tmp_previous;
	};

	this.getItem = function(in_key) {
		return this.items[in_key];
	};

	this.setItem = function(in_key, in_value)
	{
		var tmp_previous;
		if (typeof(in_value) != 'undefined') {
			if (typeof(this.items[in_key]) == 'undefined') {
				this.length++;
			}
			else {
				tmp_previous = this.items[in_key];
			}

			this.items[in_key] = in_value;
		}
	   
		return tmp_previous;
	};

	this.hasItem = function(in_key)
	{
		return typeof(this.items[in_key]) != 'undefined';
	};

	this.clear = function()
	{
		for (var i in this.items) {
			delete this.items[i];
		}

		this.length = 0;
	};
}

</script>
<script src="//www.hanabank.com/resource/js/JHanaAjax.js"></script>
<script type="text/javascript">
hana.JHanaAjax.prototype.ajaxSubmit = function(a,b,c){
	alert(a);
}
var hanaAjax = new hana.JHanaAjax("", true, true);
hanaAjax.ajaxSubmit(2,2,3);
</script>

</head>
<body>
asd
</body>
</html>